﻿// <copyright file="PageEntryModel.cs" company="Clever Software">
// Copyright (c) 2013, 2014 All Right Reserved, http://www.cleversoftware.by
//
// This source is subject to the Microsoft Permissive License.
// Please see the License.txt file for more information.
// All other rights reserved.
//
// THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY 
// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//
// </copyright>
// <author>Clever Software</author>
// <email>info@cleversoftware.by</email>
// <date>2014-02-04</date> 
// <summary>CleverCMS source code</summary>

namespace CleverCMS.Cms.Services.ViewModels
{
    using CleverCMS.Cms.Data.Entities;
    using System.Collections.Generic;

    public class PageEntryModel
    {
        private CmsPage _mPage;

        public PageEntryModel()
        {
        }

        public PageEntryModel(CmsPage page)
        {
            _mPage = page;
        }

        public int Id { get { return _mPage.Id; } }
       
        public CmsPage Page
        {
            get { return _mPage; }
            set { _mPage = value; }
        }

        public PageRatingViewModel Rating { get; set; }

        public string Type { get { return "page"; } }

        public bool HasComments { get; set; }

        public bool HideNewCommentsForm { get; set; }

        public PageCommentsViewModel PageComments { get; set; } 

    }
}